package com.zmc.order.feign;

import com.zmc.common.domain.query.collection.MyCollectionFeignQuery;
import com.zmc.common.domain.query.goods.GoodSkuFeignQuery;
import com.zmc.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author：zmc
 * @Date：2024/12/2 16:24
 */
@FeignClient("mall-search")
public interface SearchFeignService {

    @RequestMapping("/search/product/collect")
    public R collectionList(@RequestBody MyCollectionFeignQuery query);

    /**
     * 通过skuIds获取sku列表信息
     * */
    @PostMapping("/search/product/skus")
    public R getSkuInfosBySkuIds(@RequestBody GoodSkuFeignQuery query);
}
